package com.yungu.swift.assets.driver.service;

import com.yungu.swift.assets.driver.model.dto.DriverCheckDto;
import com.yungu.swift.assets.driver.model.param.AdminDriverCheckPassParam;
import com.yungu.swift.assets.driver.model.param.AdminDriverCheckRejectParam;
import com.yungu.swift.base.ResponseData;
import com.yungu.swift.base.service.BaseService;

import java.util.Map;


/**
 * Copyright © 厦门云谷互联信息有限公司 2018-2020 All Right Reserved
 * <p>
 * 司机申请业务逻辑接口
 * 重写findOne get list queryPage
 *
 * @author Zerrion
 * @version 1.0.0-RELEASE
 * @since 2018-07-05 17:57
 */
public interface DriverCheckService extends BaseService<DriverCheckDto> {

    /**
     * 审核通过
     *
     * @param checkPassParam 审核通过参数
     * @return AjaxList
     */
    ResponseData<Boolean> pass(AdminDriverCheckPassParam checkPassParam);

    /**
     * 审核驳回
     *
     * @param checkRejectParam 审核驳回参数
     * @return AjaxList
     */
    ResponseData<Boolean> reject(AdminDriverCheckRejectParam checkRejectParam);

    /**
     * 获取最新一条的审核记录
     *
     * @param map 参数
     * @return DriverCheckDto
     */
    ResponseData<DriverCheckDto> getLatest(Map<String, Object> map);

    /**
     * 出租车审核检验司机手机号，车牌号，身份证号
     *
     * @param dto DriverCheckDto
     * @return AjaxList
     */
    ResponseData<Map<String, Object>> validate(DriverCheckDto dto);
}